package com.lnsf.bookstore.system.user.service;

import com.github.pagehelper.PageInfo;
import com.lnsf.bookstore.system.user.vo.User;

import java.util.Map;

public interface UserService {

	public User getByUserName(String username);
	
	public Integer saveUser(User user);
	
	User getUserByName_roleAndPer(String username);
	
	User getByPhone(String phone);

	int updatePassword(Integer userId, String password, String newPassword);

	PageInfo<User> selectAllAdmin(Map<String, Object> map, User user);

	//PageInfo<VipUser> selectAllVip(Map<String, Object> map, VipUser user);

	public Integer updateUser(User user);

	User selectById(Integer userId);

	/**
	 * 删除用户
	 */
	void deleteBatch(Integer[] userIds);

}
